<extend name="Base/user"/>

<block name="body">
  <div class="user-box withdraw">
    <h3>提现详情</h3>
    <div class="alert alert-danger J_mobile_bind">
      <p>{$data.status|get_withdraw_text}</p>
    </div>

    <div class="step">
      <ul class="clearfix">
        <li class="active">
          <i class="icon icon-form"></i>
          <p class="status">申请提现</p>
          <p class="text-info time">{$data.create_time|time_format}</p>
        </li>
        <li <if condition="$data['status'] gt 100">class="active"</if>>
          <i class="icon icon-time"></i>
          <p class="status">处理中</p>
        </li>
        <switch name="data.status">
          <case value="101">
            <li class="active">
              <i class="icon icon-round-close-fill"></i>
              <p class="status">提现失败</p>
              <p class="text-info time">{$data.admin_refuse_time|time_format}</p>
            </li>
          </case>
          <case value="201">
            <li class="active">
              <i class="icon icon-round-close-fill"></i>
              <p class="status">提现失败</p>
              <p class="text-info time">{$data.bank_refuse_time|time_format}</p>
            </li>
          </case>
          <case value="300">
            <li class="active">
              <i class="icon icon-round-check-fill"></i>
              <p class="status">提现成功</p>
              <p class="text-info time">{$data.success_time|time_format}</p>
            </li>
          </case>
          <default />
            <li>
              <i class="icon icon-round-check-fill"></i>
              <p class="status">提现成功</p>
            </li>
          </case>
        </switch>
      </ul>
    </div>

    <div class="row list-info">
      <div class="col-xs-12">
        <div class="hd clearfix">
          <span class="col-xs-4">提现到</span>
          <span class="col-xs-1">金额<small>(元)</small></span>
          <span class="col-xs-2">提现状态</span>
          <span class="col-xs-2">提现时间</span>
          <span class="col-xs-3">其他</span>
        </div>
      </div>
      <div class="col-xs-12">
        <div class="bd  clearfix">
          <div class="col-xs-4">
            <eq name="data.type" value="alipay">
              {$data.type|get_user_account_text} ({$data.account|get_hidden_alipay})
            <else />
              {:C('BANK_LISTS.'.$data['bankname'])} ({$data.account|get_hidden_bankcard})
            </eq>
          </div>
          <div class="col-xs-1"><span class="text-danger">{$data.amount}</span></div>
          <div class="col-xs-2">{$data.status|get_withdraw_text}</div>
          <div class="col-xs-2">{$data.create_time|time_format}</div>
          <div class="col-xs-3">
            <php>$refuse = array(101, 201);</php>
            <if condition="in_array($data['status'], $refuse)">
              拒绝原因：{$data.memo}
            </if>
            <if condition="$data['status'] eq 200">
              手续费：{$data.fee}
            </if>
          </div>
        </div>
      </div>
    </div>
  </div>
</block>